package com.iversonx.facade.example_1.remote.impl;

import com.iversonx.facade.example_1.remote.PaymentGatewayService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 *
 **/
@Service
public class PaymentGatewayImpl implements PaymentGatewayService {
    private final Logger logger = LoggerFactory.getLogger(PaymentGatewayImpl.class);
    
    @Override
    public boolean verifyCardDetails(String cardNo) {
        logger.info("Card# {} has been verified and is accepted.", cardNo);
        return true;
    }
    
    @Override
    public boolean processPayment(String cardNo, float cost) {
        logger.info("Card# {} is used to make a payment of {}.", cardNo, cost);
        return true;
    }
}
